package com.quectel.business.contentaudit;

import com.quectel.util.common.Response;

/**
 * @author zhangheng
 * @email nolan.zhang@quectel.com
 * @date 2023/5/15 14:28
 * @description new java file header...
 */
public interface Validator<T> {

    /**
     * 校验
     *
     * @param t
     * @return
     */
    Response validate(T t);

    /**
     * 优先级
     *
     * @return
     */
    int getPriority();

    /**
     * 校验可能有缓存 清除缓存
     * @return
     */
    Response invalidCache(ValidatorContext validatorContext);
}
